<#macro tipDlg content>

<div class="modal" id="tipDlg" tabindex="-1" role="dialog" aria-labelledby="errorTip" aria-hidden="true">
  <div class="modal-dialog" id="modal-dialog-tip" style="width:400px">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="errorTip">提示</h4>
      </div>
      <div class="modal-body" id="tipContent">
        	${content}
      </div>
      <div class="modal-footer">
      	 <button type="button" class="btn btn-tip btn-default" data-dismiss="modal">确定</button>        
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script type="text/javascript">
	function tip(content)
	{
		$('#tipContent').text(content);
		$('#tipDlg').modal('show');	
	}
	
	function tipAutoClose(content,fun)
	{
		$('#tipContent').text(content);
		$('#tipDlg').modal('show');	
		$('#tipDlg .btn-tip').one('click',function(){
			fun();
		});
	}
	
	function tipHtml(content,width)
	{
		width&&$('#modal-dialog-tip').width(width);
		$('#tipContent').html(content);
		$('#tipDlg').modal('show');	
	}
</script>
</#macro>